#include "sys.h"
#include "net.h"
#include "log.h"


int socket_new(int family, int type, int flag){
    int sk = 0;

    sk = socket(family, type, flag);
    if(sk < 0){
        log_syserr("create socket error.");
        return -1;
    }
    return sk;
}

